package com.example.demo.grbkxt.mapper;

import com.example.demo.grbkxt.model.Blog;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface BlogMapper {
    List<Blog> getAllBlogs();

    Blog getBlogById(@Param("id") String id);

    List<Blog> getPublicBlogs();

    List<Blog> searchBlogs(@Param("keyword") String keyword, @Param("category") String category);

    void addBlog(Blog blog);

    void updateBlog(Blog blog);

    void deleteBlog(@Param("id") String id);
}
